package com.auth.domain.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.auth.control.model.RoleAuthDto;
import com.auth.domain.module.po.authmanage.RoleAuth;
import com.auth.domain.module.vo.authmanage.AuthVO;

import java.util.List;

/**
 * <p>
 * 角色权限表 服务类
 * </p>
 *
 * @author cyj
 * @since 2020-10-21
 */
public interface IRoleAuthService extends IService<RoleAuth> {

    /**
     * Remove by role id boolean
     *
     * @param roleId role id
     * @return the boolean
     * @description: 删除此roleId下的所有权限
     */
    boolean removeByRoleId(Long roleId);

    /**
     * Gets by role id *
     *
     * @param roleId role id
     * @return the by role id
     * @description: 获取roleId下的所有权限
     */
    List<RoleAuth> getByRoleId(Long roleId);

    void saveRoleAuths(Long roleId, List<RoleAuthDto> roleAuthDtos);

    List<AuthVO> getRoleAuths(Long roleId);
}
